package com.example.demo.dto;

import com.example.demo.entity.Dish;
import com.example.demo.entity.DishFlavor;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;

@Data
public class DishDto extends Dish {
//菜品对应的口味数据
    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

    private Integer copies;

    @Override
    public String toString() {
        return  "DishDto{" +
                "id=" + super.getId() +
                ", name='" + super.getName() + '\'' +
                ", categoryId=" +super.getCategoryId() ;
    }
}
